package com.ruoyi.framework;


import com.ruoyi.framework.scanpath.ScanPathUtils;
import org.springframework.beans.BeansException;
import org.springframework.context.ApplicationContext;
import org.springframework.context.ApplicationContextAware;
import org.springframework.stereotype.Component;
import org.springframework.web.context.WebApplicationContext;

/**
 * 项目启动加载
 */
@Component
public class Init implements ApplicationContextAware {


    @Override
    public void setApplicationContext(ApplicationContext applicationContext) throws BeansException {
        ScanPathUtils.init((WebApplicationContext) applicationContext);
    }
}
